package com.wdc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wdc.model.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper  extends BaseMapper<User> {

    @Select("select  * from wdc.user where id = #{id}")
    List<User> selectById(Integer id);

    /**
     * 根据账户查询查询员工
     * @param userAccount
     * @return
     */
    @Select("select * from wdc.user where userAccount = #{userAccount}")
    User getByUserAccount(String userAccount);
}
